package io.github.talelin.latticy.service;

import io.github.talelin.latticy.dto.maintenance.CreateOrUpdateMaintenanceDTO;
import io.github.talelin.latticy.model.MaintenanceDO;
import io.github.talelin.latticy.vo.MaintenanceVo;

import java.util.List;

/**
* @author vvboy
*/
public interface MaintenanceService {

    boolean createMaintenance(CreateOrUpdateMaintenanceDTO validator);
    boolean updateMaintenance(MaintenanceDO MaintenanceService, CreateOrUpdateMaintenanceDTO validator);
    MaintenanceDO getById(Integer id);
    MaintenanceVo getByIdVo(Integer id);
    List<MaintenanceDO> findAll();
    boolean deleteById(Integer id);

    List<String> statCurMonth();

    // 当月受理数量
    Integer curMonthAcceptCount();
}
